package com.zjf.carpark.service.impl;


import com.zjf.carpark.dao.ICcardMapper;
import com.zjf.carpark.entities.ICcard;
import com.zjf.carpark.service.ICcardService;
import com.zjf.carpark.vo.ICcardVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: 张建飞
 * @createDate: 2019/12/21
 * @version: 1.0
 */
@Service
public class ICcardServiceImpl extends BaseServiceImpl<ICcard> implements ICcardService {
    @Autowired
    private ICcardMapper iCcardMapper;

    @Override
    public int selectByCarNum(String carNum) {
        return iCcardMapper.selectByCarNum(carNum);
    }

    @Override
    public List<ICcard> selectByMsg(ICcardVO iCcardVO) {
        return iCcardMapper.selectByMsg(iCcardVO);
    }

    @Override
    public Integer totalCount(ICcardVO iCcardVO) {
        return iCcardMapper.totalCount(iCcardVO);
    }

    @Override
    public ICcard selectICcardByOwnerId(Integer ownerId) {
        return iCcardMapper.selectICcardByOwnerId(ownerId);
    }

}
